package ModelLayer;

import java.util.ArrayList;
/** 
 * @author (Gruppe 5) 
 * @version (04-04-2013)
 */
public class Product
{
    // fields
    private String name;
    private double 	purchasePrice;
    private double salesPrice;
    private double rentPrice;
    private String countryOfOrigin;
    private int minStock;
    private int stock;
    private String productType;
    private Equipment equip;
    private int supplierId;

    /**
     * Constructor for objects of class Product
     */
	public Product(String name, double purchasePrice, double salesPrice,
			double rentPrice, String countryOfOrigin, int minStock, int stock, String productType, int supplierId) {
		this.name = name;
		this.purchasePrice = purchasePrice;
		this.salesPrice = salesPrice;
		this.rentPrice = rentPrice;
		this.countryOfOrigin = countryOfOrigin;
		this.minStock = minStock;
		this.stock = stock;
		this.productType = productType;
		this.supplierId = supplierId;
	}
	public Product()
	{
	}
	
	
    //getters and setters

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPurchasePrice() {
		return purchasePrice;
	}

	public void setPurchasePrice(double purchasePrice) {
		this.purchasePrice = purchasePrice;
	}

	public double getSalesPrice() {
		return salesPrice;
	}

	public void setSalesPrice(double salesPrice) {
		this.salesPrice = salesPrice;
	}

	public double getRentPrice() {
		return rentPrice;
	}

	public void setRentPrice(double rentPrice) {
		this.rentPrice = rentPrice;
	}

	public String getCountryOfOrigin() {
		return countryOfOrigin;
	}

	public void setCountryOfOrigin(String countryOfOrigin) {
		this.countryOfOrigin = countryOfOrigin;
	}

	public int getMinStock() {
		return minStock;
	}

	public void setMinStock(int minStock) {
		this.minStock = minStock;
	}

	public int getStock() {
		return stock;
	}

	public void setStock(int stock) {
		this.stock = stock;
	}
	public String getProductType() {
		return productType;
	}
	public void setProductType(String productType) {
		this.productType = productType;
	}
	
	public void setEquipment(String type, String description) {
		equip.setEquipment(type, description);
	}


	public int getSupplierId()
	{
		return supplierId;
	}
	

	public void setSupplierId(int supplierId)
	{
		this.supplierId = supplierId;
	}
	
    
}